package com.chen10.gobang.ai.model;

import com.chen10.gobang.common.enums.game.AiFightResultEnum;
import lombok.Data;

import java.util.List;

@Data
public class AiMoveResponse {
    private int resultCode; // 0:平局，1：玩家获胜，-1：AI获胜，2：继续
    private String resultMessage;  //resultCode对应描述
    private List<int[]> winPosList; // 获胜的五子坐标
    private Position aiDecitionPosition; //ai的决策

    public AiMoveResponse() {

    }
    public AiMoveResponse(AiFightResultEnum aiFightResultEnum, List<int[]> winPosList, Position aiDecitionPosition) {
        this.resultCode = aiFightResultEnum.getCode();
        this.resultMessage = aiFightResultEnum.getMessage();
        this.winPosList = winPosList;
        this.aiDecitionPosition = aiDecitionPosition;
    }
}
